<template>
  <div class="top page-auto">
    <div class="top-left">
      <div class="logo">
        <img src="@/assets/images/pic/logo.png" alt="">
      </div>
      <div class="nav">
        <router-link to="/" tag="div">首页</router-link>
        <router-link to="/anchor"  tag="div">主播</router-link>
        <router-link to="/news"  tag="div">新闻</router-link>

        <!-- <div class="current">首页</div>
        <div>主播</div>
        <div>新闻</div> -->
      </div>
    </div>
    <div class="top-right">
      登录
    </div>
  </div>
</template>

<script lang="ts" setup>
</script>

<style scoped lang="scss">
.page-auto {
  width: 1000px;
  margin: 0 auto;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  .top-left {
    display: flex;
    align-items: center;
    .logo {
      img {
        width: 63px;
        height: 44px;
      }
    }
    .nav {
      display: flex;
      gap: 48px;
      margin-left: 50px;
      font-size: 15px;
      color: #000;
      cursor: pointer;
      a {
        color: #000;
      }
      .router-link-exact-active {
        position: relative;
        &::after {
          content: '';
          width: 28px;
          height: 4px;
          background: linear-gradient( 270deg, rgba(255,54,54,0.6) 0%, rgba(255,103,70,0.6) 100%);
          position: absolute;
          top: 37px;
          left: 0;
        }
      }
    }
  }
  .top-right {
    width: 90px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #000;
    color: #fff;
    background: linear-gradient( 270deg, rgba(222,55,63,0.9) 0%, rgba(255,105,105,0.9) 100%);
    border-radius: 100px 100px 100px 100px;
  }
}
</style>
